public class PowerAdapter extends AC220 implements DC5V{
    public PowerAdapter( AC220 inputPower){
        this.ac220Input=inputPower;
    }
    public PowerAdapter(){};
    private AC220 ac220Input;
    @Override
    public int outPut5V() {
        int adapterInput=this.ac220Input.outPutVoltage();
        int adapterOutput=adapterInput/44;
        System.out.println("转换完成，输出电压为："+adapterOutput+"V");
        return adapterOutput;
    }

    @Override
    public int outPut12V() {
        return 0;
    }

    @Override
    public int outPut24V() {
        return 0;
    }

    public AC220 getAc220Input() {
        return ac220Input;
    }

    public void setAc220Input(AC220 ac220Input) {
        this.ac220Input = ac220Input;
    }
}
